]> dgit.raspbian.org Git - ostree.git/commit
ot-builtin-summary: Verify signature when viewing a summary file
authorPhilip Withnall <pwithnall@gnome.org>
Tue, 4 Aug 2026 15:52:53 +0000 (16:52 +0100)
committerPhilip Withnall <pwithnall@gnome.org>
Tue, 4 Aug 2026 16:31:36 +0000 (17:31 +0100)
commitd180a0e5ba038e975c9f4c5f951bbeb7dfcb9051
tree12684fae353f08e697eb71f54565a5ef48a5d744
parent8eac67e4d74d06098dd1509bed7d44013878c4b8
ot-builtin-summary: Verify signature when viewing a summary file

So now we can run `ostree summary --repo . --view --gpg-homedir
/path/to/servers/gpg-homedir` and it’ll verify the GPG signatures.
That’s not so useful for verification per-se, since if you’re running
this on a server you’d expect the signatures you’ve generated to verify
correctly. It’s more useful to see how many signatures are on the
`summary` and which subkeys were used to generate them, when messing
around with multiple signing keys.

Aside from this, there is no way (that I know of) to inspect the
signatures on a summary file without checking out a copy of the
repository and hoping that the client has got a full copy of the keyring
containing all relevant subkeys.

The verification output is very similar to that of `ostree show`.

Note that signatures are not verified if running with `--raw`,
`--list-metadata-keys` or `--print-metadata-key`, since clients may be
parsing the output of those commands.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
src/ostree/ot-builtin-summary.c
tests/test-summary-view.sh